package com.tmeone.erpone.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tmeone.erpone.entity.TIoWarehouse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tmeone.erpone.entity.TIomWarehouse;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tmeone
 * @since 2021-04-20
 */
public interface TIoWarehouseMapper extends BaseMapper<TIoWarehouse> {
    //出入库分页
    IPage<TIoWarehouse> pageInAndOut(IPage<TIoWarehouse> page);
    //根据出入库单号查询详情
    List<TIomWarehouse> getDetailsInAndOutByIomNo(String ioNo);

    //查询出入库类型
    List<String> selectIoType();

    //查询仓库名称
    List<String> selectWName();

    //根据出入库单号和批次查询数据
    List<TIoWarehouse> selectOne(String ioNo,int batch);
}
